/*
 * @Description: 
 * @Author: BaldHead
 * @Date: 2022-03-21 19:24:15
 * @LastEditTime: 2022-03-21 20:18:35
 * @LastEditors: Please set LastEditors
 */
/*
 * @Description: 
 * @Author: BaldHead
 * @Date: 2022-03-21 19:24:15
 * @LastEditTime: 2022-03-21 19:24:15
 * @LastEditors: 
 */
var x = 2;
var i = 0;
var y = {
    x: 3,
    z: (function(x) {
        ++i;
        console.log(i + "次" + this.x, x);
        // console.log(this.x, x); //2 2
        this.x *= x;
        console.log(i + "次" + this.x, x);
        // console.log(this.x, x); //4 2
        x += 2;
        return function(n) {

            console.log(i + "次" + this.x, n, x); //4,4,4  3 5 7
            this.x *= n;
            console.log(i + "次" + this.x, n, x); //16 4,4  15,5,7
            // console.log(this.x);
            x += 3; //4+3=7   7+3=10
            console.log(x);
        }
    })(x), //2\

};
var m = y.z;
m(4);
y.z(5)
console.log(x, y.x);